<%--
  Created by IntelliJ IDEA.
  User: zhangshengjia
  Date: 2023/4/9
  Time: 14:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>商品信息详情页面</title>
</head>
<body>
<h1>尊敬的用户欢迎你查看商品</h1>
<table border="1">
  <tr>
    <th>商品名</th>
    <th>商品价格</th>
  </tr>
  <c:forEach var="commodity" items="${sessionScope.commodities}">
    <tr>
      <td>${commodity.name}</td>
      <td>${commodity.price}</td>
    </tr>
  </c:forEach>
</table>
</body>
</html>
